<include file="public:header"/>
<div class="allpagetop">系统设置<strong>/</strong>数据采集</div>
<div class="admin_main_nr_dbox">
    <div class="pagetit">
        <div class="ptit">数据采集</div>
        <div class="clear"></div>
    </div>

    <div class="toptit">问答采集配置<span class="note link_g">(请先从火车头官网下载采集器并安装，然后下载此web发布模块，<a href="/data/upload/helpyangtata.wpm.zip"  target="_blank"><strong>点击获取</strong></a>)</span></div>
    <form action="{:RU('Da/config')}" method="post" name="FormData" id="FormData">
        <div class="admin_form_main big">
            <div class="fl">开启火车头采集:</div>
            <div class="fr">
                <div class="imgchecked {$show['is_enable'] == '1' ? 'select' : ''}">
                    <input name="is_enable" type="hidden" value="{$show.is_enable}"/>
                </div>
            </div>
            <div class="fl">用户名列表:</div>
            <div class="fr">
                <input name="users" type="text" class="input_text_default" maxlength="300"
                       placeholder="多个用户名用,分隔"
                       value="{$show.users}"/>
            </div>
            <div class="fl">初始访问量范围:</div>
            <div class="fr">
                <input name="click_min" type="text" class="input_text_default" style="width: 100px;"
                       value="{$show.click_min}"/> -
                <input name="click_max" type="text" class="input_text_default" style="width: 100px;"
                       value="{$show.click_max}"/>
            </div>
            <div class="fl">问题发布时间:</div>
            <div class="fr">
                <div class="imgradio">
                    <input name="time_type" type="hidden" value="{$show.time_type}"/>
                    <div class="radio {$show['time_type']==='origin' ? 'select' : ''}" data="origin">原始时间</div>
                    <div class="radio {$show['time_type']==='day' ? 'select' : ''}" data="day">一天内随机</div>
                    <div class="radio {$show['time_type']==='week' ? 'select' : ''}" data="week">一周内随机</div>
                    <div class="radio {$show['time_type']==='month' ? 'select' : ''}" data="month">一月内随机</div>
                    <div class="clear"></div>
                </div>
            </div>
            <div class="fl"></div>
            <div class="fr">
                <input name="" type="submit" class="admin_submit big" value="保存配置"/>
            </div>
            <div class="clear"></div>

        </div>
    </form>
</div>
<include file="public:footer"/>
<script type="text/javascript">
    $(document).ready(function () {
        $('.imgradio .radio').click(function () {
            if ($(this).attr('data') == '1') {
                $(".moreform").hide();
            }
            else {
                $(".moreform").show();
            }
        });
    });
</script>
</body>
</html>